package com.es.www.aopContext.advice;

import java.util.Arrays;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;

/**
 * @Created by michangtao
 * @Date 2022/2/7 17:07
 * @Description
 */
@Aspect
@Component
public class LogAdvice {

    /**
     * 前置通知应用切点
     */
    @Before(value = "execution(* com.es.www.aopContext.service.UserService.*(..))")
    public void beforePrint(JoinPoint joinPoint){
        System.out.println("LogAdvice前置通知>>>>>");
    }






}
